package com.gwclh.personnel.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gwclh.personnel.domain.PageDomain;
import com.gwclh.personnel.entity.Dismission;
import com.baomidou.mybatisplus.extension.service.IService;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.gwclh.personnel.entity.Dismission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gwclh.personnel.entity.Employee;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 员工离职记录表 服务类
 * </p>
 *
 * @author gzhhh
 * @since 2020-07-24
 */
public interface IDismissionService extends IService<Dismission> {

    IPage<Map<String, Object>> selectEmp();

    IPage<Map<String, Object>> selectEmpBySearch(String deptName,Integer empId,String empName);

    Integer quit(Dismission dismission);


    IPage<Map<String, Object>> selectQuit();

    IPage<Map<String, Object>> selectQuitBySearch(Integer empId, String deptName, String staName);

    Map<String,Object> statisticsDismissionEmpMonth();


    List<Map<String,Object>> getDismissionDataByPid(Integer pId);

    Map<String, Object> pageDismissions(PageDomain pageDomain, Dismission dismission);
}
